#include "Entity.h"

Entity::Entity(){
	speed = 3;
	tempTick = 0;
}

Entity::~Entity(){

}

void Entity::MoveX(int direction){
	if(direction==RIGHT)
		box.x+=2;
	else if(direction==LEFT)
		box.x-=2;
}

void Entity::MoveY(int direction){
	if(direction==DOWN)
		box.y+=2;
	else if(direction==UP)
		box.y-=2;
}

int Entity::GetX(){
	return box.x;
}

int Entity::GetY(){
	return box.y;
}

int Entity::GetW(){
	return box.w;
}

int Entity::GetH(){
	return box.h;
}

void Entity::SetX(int x){
	box.x = x;
}

void Entity::SetY(int y){
	box.y = y;
}

void Entity::SetH(int h){
	box.h = h;
}

void Entity::SetW(int w){
	box.w = w;
}

void Entity::SetP(int x, int y){
	box.x = x;
	box.y = y;
}

void Entity::SetB(int w, int h){
	box.w = w;
	box.h = h;
}